<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
	<title>二维码分享</title>
	<style>
	*{
		margin: 0;
		padding: 0;
	}
	body{
	 width: 100%;
	 height: 100%;
	 background: url('/resources/images/login.png');
	 background-size: 100%;
	 background-repeat: no-repeat;
	}
	.share_img3{
		width: 100px;
		height: 130px;
		margin: 18px auto;
		margin-top: 30px;
	}
	.share_img3 img{
		width: 100px;
		height: 100px;
		margin-top: 38px;
	}
	</style>
	[#include "/includes/scripts.html" /]
</head>
<body>
	<input id="recPhoneHide" type="hidden" value="${phone}">
	<div class="share_img3" id="agentImg"></div>
<script type="text/javascript">
    var recPhone = $("#recPhoneHide").val();
    $("#agentImg").qrcode({
        render: "canvas", //table方式
        width: 200, //宽度
        height: 200, //高度
        text: "http://192.168.1.124:8082/toRegist?recPhone=" + recPhone //任意内容
    });
    var mycanvas = $("#agentImg").find("canvas")[0];
    var image = mycanvas.toDataURL("image/png");
    $("#agentImg").html("<img src='" + image + "' alt='from canvas'/>");
</script>
	
</body>
</html>